<template>
   <div v-if="details.length">
    <img
    :src="isHttp(details[0].imgUrl)"
        alt=""
        class="w-100"
        style="height: 450px;"
      />
    <div id="crumbs" class="max-1200">
      <img src="@/assets/icon/weizhi.png" alt="" class="ic" />
      <a href="/">{{
        globalLanguage.languageSuffix == "Cn" ? "首页" : "Главная страница"
      }}</a>
      &gt;

      <a>{{
        globalLanguage.languageSuffix === "Cn" ? "公司业务" : "Операции"
      }}</a>
      &gt;
      <a>{{
        globalLanguage.languageSuffix === "Cn"
          ? "双清含税专线"
          : "Двойная налоговая линия"
      }}</a>
      &gt;
      <router-link to="/business/shuangqing/automobile-generally-fast"> {{
          globalLanguage.languageSuffix === "Cn"
            ? "双清汽运普快"
            : "Двойной скоростной транспорт."
        }}</router-link>
    </div>

    <h2 class="title1">
      {{ details[0]["title" + globalLanguage.languageSuffix] }}
    </h2>
    <p><br /></p>
    <div style="margin-bottom: 50px">
      <div v-for="(item, index) in details" :key="index">
        <div class="max-1200" style="line-height: 100px">
          <p v-html="item['desc' + globalLanguage.languageSuffix]"></p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { detailsText } from "@/api/alltext.js";
import { ref } from "vue";

const details = ref([]);
const getText = async () => {
  try {
    const response = await detailsText(2);
    details.value = response.list;
    
  } catch (error) {
    console.error("获取数据失败:", error);
  }
};
getText();
</script>

<style>

</style>
